package com.cjf.aop.enums;

import android.support.annotation.IntDef;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 缓存注解类型，不方便使用类似Gravity那种位运算
 * created by cjf
 * on: 2020/3/19
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
@IntDef({CacheType.DISK, CacheType.MEMORY})
public @interface CacheType {
    /**
     * 磁盘缓存
     */
    int DISK = 0;
    /**
     * 内存缓存
     */
    int MEMORY = 1;

}
